/* TextStyle.java
 * Author: liuex
 * 2007-12-14 ����04:29:43
 *
 * Note: 
 */
package org.lex.swing.widgets.console;

import java.awt.Color;

import javax.swing.text.AttributeSet;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;

public enum TextStyle {
	STDIN(Color.green), STDOUT(Color.blue), STDERR(Color.red);
	public AttributeSet getAttributeSet() {
		return this.style;
	}

	private SimpleAttributeSet style = null;

	private TextStyle(Color foreground) {
		this.style = new SimpleAttributeSet();
		StyleConstants.setForeground(style, foreground);
	}
}
